//
//  HYLBaseModel.swift
//  YiZhangGui
//
//  Created by Fexerlear on 2018/9/25.
//  Copyright © 2018年 Mac. All rights reserved.
//

import Foundation
import ObjectMapper

class BaseModel: Mappable {
    
    var zt_code    = 0
    var status    = 0
    var message   = ""
    var msg       = ""
    
    // MARK: 版本更新
    var is_update = false
    var updateMsg = ""

    required init?(map: Map) { }
    
    init(){
        
    }
    
    func mapping(map: Map) {
        zt_code    <- map["code"]
//        zt_code    <- (map["code"], IntTransform())
//        status    <- (map["status"], IntTransform())
//        msg       <- (map["msg"], StringTransform())
//        message   <- (map["message"], StringTransform())
//        
//        is_update <- (map["data.is_update"], BoolTransform())
//        updateMsg <- (map["data.msg"], StringTransform())

    }
    
    
}

class WorkbenchModel: Mappable {
    
    /***
     *  message:   提示信息：成功。。。
     *  code:      验证码
     */
    var status     = 0
    var message    = ""
//    var list       = [WorkbenchSingleModel]()
    
    required init?(map: Map) { }
    
    func mapping(map: Map) {
        status <- map["status"]
        message <- map["message"]
//        list <- map["data"]
    }
}
